//
//  Config.h
//  BaseFrame
//
//  Created by 孟学浩 on 16/9/28.
//  Copyright © 2016年 com.mxh. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

/**
 *  主颜色
 */
extern NSString *mainColor;

extern NSString *redColor;

extern NSString *textColor;

extern NSString *dividerColor;


#define Strong @property (nonatomic, strong)
#define Assign @property (nonatomic, assign)
#define Copy @property (nonatomic, copy)

#define DEF_FontSize_24 [UIFont systemFontOfSize:24]
#define DEF_FontSize_20 [UIFont systemFontOfSize:20]
#define DEF_FontSize_19 [UIFont systemFontOfSize:19]
#define DEF_FontSize_18 [UIFont systemFontOfSize:18]
#define DEF_FontSize_17 [UIFont systemFontOfSize:17]
#define DEF_FontSize_16 [UIFont systemFontOfSize:16]
#define DEF_FontSize_15 [UIFont systemFontOfSize:15]
#define DEF_FontSize_14 [UIFont systemFontOfSize:14]
#define DEF_FontSize_13 [UIFont systemFontOfSize:13]
#define DEF_FontSize_12 [UIFont systemFontOfSize:12]
#define DEF_FontSize_11 [UIFont systemFontOfSize:11]
#define DEF_FontSize_10 [UIFont systemFontOfSize:10]
#define DEF_FontSize_8 [UIFont systemFontOfSize:8]

//屏幕宽高
#define SCREEN_WIDTH [UIScreen mainScreen].bounds.size.width
#define SCREEN_HEIGHT [UIScreen mainScreen].bounds.size.height

//5S宽高比例
#define WIDTH_5S_SCALE 320.0 * [UIScreen mainScreen].bounds.size.width

//返回值判断
#define State(responseObject) [[responseObject objectForKey:@"status"] integerValue] == 0


//显示msg
#define ShowMessage(msg) [self.view makeToast:msg duration:1 position:CSToastPositionCenter]

@interface Config : NSObject
UIColor* getColor(NSString * hexColor);
@end
